package cn.com.shaom.learning.sb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * ClassName: SpringbootWebJspApplication
 * Description: 外置 Tomcat 启动类，需要继承 SpringBootServletInitializer
 * Date: 2018/1/4 12:42 【需求编号】
 *
 * @author Shaom
 * @version V1.0.0
 */
@SpringBootApplication
public class SpringbootWebJspApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SpringbootWebJspApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(SpringbootWebJspApplication.class, args);
    }
}
